// 储存取车地址和时间

export default {
  namespaced: true,
  state: {
    address: {
      city: "深圳", //城市
      area: "龙华区", // 地址
    },
    // 储存日期
    date: {
      get: {
        day: null, // 几月几日
        week: null, // 周几
        hour: null, // 小时
      },
      also: {
        day: null,
        week: null,
        hour: null,
      },
    },
    // 时间间隔
    timeDistance: "2天",
  },
  mutations: {
    // 修改地址
    changeAddress(state,payload) {
      state.address.city = payload.city
      state.address.area = payload.area
    },

    // 修改日期
    changeDate(state,payload) {
      state.date = payload
    },

    // 改变时间间隔
    changeTimeDistance(state,payload) {
      state.timeDistance = payload
    }
  },
  actions: {
  },
  modules: {
  }
}